module.exports = (req,res,next)=>{
    if(req.method==="POST"&&req.path==="/login"){
        if(req.body.username==='邱攀'&&req.body.password==='987'){
            return res.status(200).json({
                user:{
                    token:'123'
                }
            })
        }else{
            return res.status(400).json({message: 'Invalid username or password'})
        }
    }
    next()
}